package com.chushouya.manager.dto.common;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;

@Data
@ApiModel("合作商规则项DTO")
public class PartnerRuleItemDTO {

    @ApiModelProperty("价格区间开始")
    private BigDecimal begin;

    @ApiModelProperty("价格区间结束")
    private BigDecimal end;

    @ApiModelProperty("加价值")
    private String value;

    @ApiModelProperty("类型：1-固定金额，2-百分比")
    private Integer type;

    /**
     * 构造函数
     */
    public PartnerRuleItemDTO() {
    }

    /**
     * 带参构造函数
     */
    public PartnerRuleItemDTO(BigDecimal begin, BigDecimal end, String value, Integer type) {
        this.begin = begin;
        this.end = end;
        this.value = value;
        this.type = type;
    }
}
